package View;

/**
 * Classe responsavel pelo conteudo exibido na sprite da ovelha.
 * 
 * @author Edjane Catolle, Igor Henrique, Luiz Augusto, Vladmir Chicarolli
 * @version 1.0.0
 * @since 05/31/2011
 */

import java.awt.Image;
import Model.ImagesManager;
import Model.SheepModel;

public class SheepView extends BaseView
{
	private int currentSprite;
	
	public void DrawHandler()
	{
		buffer = getCurrSprite();
		CustomImage(SheepModel.SheepManager().GetPosition());
		DrawBuffer();
	}
	
	public Image getCurrSprite()
	{
		currentSprite = SheepModel.SheepManager().GetQtd();
		
		switch (currentSprite)
		{
			case 1:
				return ImagesManager.LoadImage(ImagesManager.sheep01SRC);
			
			case 2:
				return ImagesManager.LoadImage(ImagesManager.sheep02SRC);
			
			case 3:
				return ImagesManager.LoadImage(ImagesManager.sheep03SRC);
			
			case 4:
				return ImagesManager.LoadImage(ImagesManager.sheep04SRC);
			
			case 5:
				return ImagesManager.LoadImage(ImagesManager.sheep05SRC);
			
			case 6:
				return ImagesManager.LoadImage(ImagesManager.sheep06SRC);
			
			case 7:
				return ImagesManager.LoadImage(ImagesManager.sheep07SRC);
			
			case 8:
				return ImagesManager.LoadImage(ImagesManager.sheep08SRC);
				
			case 9:
				return ImagesManager.LoadImage(ImagesManager.sheep09SRC);
				
			default:
				return ImagesManager.LoadImage(ImagesManager.sheep10SRC);
		}
	}
}
